﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Yipusoft.Evaluate.Model;

namespace Yipusoft.Evaluate.BLL
{
    public class Inspect
    {
        public static bool Exsits(int InspectID)
        {
            Yipusoft.Evaluate.DAL.Inspect dal = new Yipusoft.Evaluate.DAL.Inspect();
            return dal.Exsits(InspectID);
        }
        public static int Insert(InspectInfo Inspect)
        {
            Yipusoft.Evaluate.DAL.Inspect dal = new Yipusoft.Evaluate.DAL.Inspect();
            return dal.Insert(Inspect);
        }
        public static bool Update(InspectInfo Inspect)
        {
            Yipusoft.Evaluate.DAL.Inspect dal = new Yipusoft.Evaluate.DAL.Inspect();
            return dal.Update(Inspect);
        }
        public static bool Delete(int InspectID)
        {
            Yipusoft.Evaluate.DAL.Inspect dal = new Yipusoft.Evaluate.DAL.Inspect();
            return dal.Delete(InspectID);
        }
        public static InspectInfo GetInspect(int InspectID)
        {
            Yipusoft.Evaluate.DAL.Inspect dal = new Yipusoft.Evaluate.DAL.Inspect();
            return dal.GetInspect(InspectID);
        }
        public static List<InspectInfo> GetList(string StrWhere)
        {
            Yipusoft.Evaluate.DAL.Inspect dal = new Yipusoft.Evaluate.DAL.Inspect();
            return dal.GetList(StrWhere);
        }
    }
}
